package server.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import server.model.entity.Users;

import javax.persistence.Column;

/**
 * 创建人:    xvzhe
 * 创建时间:
 * 修改时间:
 * 版本:      v1.0
 */
@ApiModel
@Data
public class UserDto {
    @Column(unique = true)
    @ApiModelProperty("用户昵称")
    private String name;

    @Column
    @ApiModelProperty("用户密码")
    private String password;

    @Column(unique = true)
    @ApiModelProperty("账号")
    private String userName;

    @ApiModelProperty("手机")
    private String mobile;

    @ApiModelProperty("邀请人编号")
    private String parentId;

    @ApiModelProperty("邀请人编号")
    private Users.Grade grade;

    private Boolean active;
}
